package edu.gduf.decortor;

/**
 * Created by Zhang DaoChuan on 2017/2/18.
 * 鸭叫器
 */
public class DuckCall{

    private  QuackBehavior quackBehavior;

    public DuckCall(QuackBehavior quackBehavior){
        display();
        this.quackBehavior = quackBehavior;
    }

    public void display(){
        System.out.println("This is a duck Call");
    }

    public void performQuack(){
        quackBehavior.quack();
    }

}
